package com.ultrpower.test.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;

import com.ultrpower.test.common.BaseRedirectController;

/**
 * @author jw
 *
 */
public class indexController  extends BaseRedirectController {

	private String customUrl;
	protected ModelAndView handleRequestInternal(HttpServletRequest pRequest, HttpServletResponse pResponse) throws Exception {
		
		return new ModelAndView(this.customUrl);
	}

	public void afterPropertiesSet() throws Exception {
		// TODO Auto-generated method stub
		
	}

	/**
	 * @return the customUrl
	 */
	public String getCustomUrl() {
		return customUrl;
	}

	/**
	 * @param customUrl the customUrl to set
	 */
	public void setCustomUrl(String customUrl) {
		this.customUrl = customUrl;
	}

}
